package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 邓大帅
 * Date: 2024-01-13
 * Time: 9:10
 */
public class Test {
    public static void main(String[] args) {
        MySingleList mySingleList = new MySingleList();
        mySingleList.createLink();
        mySingleList.display();
        //System.out.println(mySingleList.size());
        System.out.println();
        mySingleList.addFirst(100);
        mySingleList.addLast(100);
        mySingleList.display();
        System.out.println();
        mySingleList.addIndex(2,100);
        mySingleList.display();
        mySingleList.removeAllKey(100);
        System.out.println();
        mySingleList.display();
    }

}
